﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TB_SKJSList.aspx.cs" Inherits="SkWeb.FYCS.TB_SKJSList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>射孔结算</title>
     <link href="../../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script src="../../js/changerows.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" style="height: 25px">
                    <img src="../images/module.gif" width="20" alt="" /></td>
                <td style="width: 232px; height: 25px;">
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="80%" align="right" style="height: 25px">
                    <img src="../images/search.gif" alt="搜索" />射孔方式：
                    <asp:TextBox ID="txtName" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="submit" CausesValidation="False"
                        OnClick="btnSearch_Click" /></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" 
            Width="99%" CssClass="gridview" RowStyle-HorizontalAlign="center" 
            EmptyDataText="没有数据" OnRowDataBound="GvData_RowDataBound" AllowPaging="True" 
            PageSize="20" onrowcommand="gvData_RowCommand">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID"/>
                <asp:BoundField DataField="SK_FS" HeaderText="枪型"/>
                <asp:BoundField DataField="SK_XM" HeaderText="弹型" />
                <asp:BoundField DataField="SK_XM_XL" HeaderText="施工类型"/>
                <asp:BoundField DataField="SK_XM_MX" HeaderText="施工方式" />
                <asp:BoundField DataField="JSDW" HeaderText="计算单位" />
                <asp:BoundField DataField="JG" HeaderText="价格" />
                <asp:BoundField DataField="BZ" HeaderText="备注" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtnEdit" CssClass="lnkbtn" runat="server" CommandArgument='<%#Eval("ID") %>'  CommandName="EditRow">修改</asp:LinkButton>
                        <asp:LinkButton ID="lnkbtnDel" CssClass="lnkbtn" runat="server" OnClientClick="return confirm('确定要删除吗?')"  CommandName="DeleteRow" CommandArgument='<%#Eval("ID") %>'>删除</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
            <PagerStyle HorizontalAlign="Center" />
        </asp:GridView>
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    &nbsp;</td>
                <td align="right">
                    
                    <asp:Button ID="btnAdd" runat="server" Text="添加" CssClass="submit" CausesValidation="False" OnClick="btnAdd_Click" />
                </td>
            </tr>
        </table>
        <p>
            <asp:Label ID="lblMsg" ForeColor="Red" runat="server" Text=""></asp:Label>&nbsp;
        </p>
    </form>
</body>
</html>
<script type="text/javascript" language="javascript">
    //senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
    senfe("gvData", "#ECF9FC", "#FFFFFF", "#D6F1F8");
</script>
